<template>
	<el-form-item :label="$t('designer.setting.displayType')">
		<el-select v-model="thisOptionModel.type">
			<el-option label="default" value=""></el-option>
			<el-option label="primary" value="primary"></el-option>
			<el-option label="success" value="success"></el-option>
			<el-option label="warning" value="warning"></el-option>
			<el-option label="danger" value="danger"></el-option>
			<el-option label="info" value="info"></el-option>
			<el-option label="text" value="text"></el-option>
		</el-select>
	</el-form-item>
</template>

<script>
import propertyMixin from "@/components/designer/form-designer/setting-panel/property-editor/propertyMixin"

export default {
	name: "button-type-editor",
	mixins: [propertyMixin],
	props: {
		designer: Object,
		selectedWidget: Object,
		optionModel: Object,
	},
	data() {
		return {
			thisOptionModel: this.optionModel
		}
	},
	watch: {
		'optionModel': {
			handler(val) {
				if (val) {
					this.thisOptionModel = val
				}
			}
		},
	},
}
</script>

<style lang="scss" scoped>

</style>
